package org.wmq.housewebadmin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.wmq.housemodel.entity.Facility;

import java.util.List;

@Mapper
public interface FacilityMapper extends BaseMapper<Facility> {

    @Select("select * from facility where is_deleted = 0")
    public abstract List<Facility> selectAll();
    @Select("select * from facility where type = #{type} and is_deleted = 0")
    public abstract List<Facility> selectListByType(Byte type);

}
